obj = this._networks[pos];
obj.accessPoints.push(ap);
} else {
- let ssid = ap.get_ssid();
- if (ssid == null)
- continue;
-
- obj = { ssid: ssid,
+ obj = { ssid: ap.get_ssid(),
mode: ap.mode,
security: this._getApSecurityType(ap),
connections: [ ],
_accessPointAdded: function(device, accessPoint) {
let pos = this._findNetwork(accessPoint);
let apObj;
- let ssid;
let needsupdate = false;
- ssid = accessPoint.get_ssid();
- if (ssid == null)
- return;
-
if (pos != -1) {
apObj = this._networks[pos];
if (apObj.accessPoints.indexOf(accessPoint) != -1) {
if (apObj.item)
apObj.item.updateAccessPoints(apObj.accessPoints);
} else {
- apObj = { ssid: ssid,
+ apObj = { ssid: accessPoint.get_ssid(),
mode: accessPoint.mode,
security: this._getApSecurityType(accessPoint),
connections: [ ],